<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body>
        
         <h:outputLabel value="#{paramBean}.loan.customer.cif}" />
        
<!--        
                        <h:panelGrid columns="2" rowClasses="panelGridId" >
                            <p:panel header="#{bundle.loanLedgend}" >
                                <h:panelGrid columns="3" cellpadding="0" cellspacing="10">
                                    <h:outputLabel value= "#{bundle.cif}" /><h:outputLabel value= ":" />
                                    <h:outputLabel value="#{paramBean}.loan.customer.cif}" />

                                    <h:outputLabel value= "#{bundle.loanprod}" /><h:outputLabel value= ":" />
                                    <h:outputLabel value="#{paramBean}.loan.loanprod.productName" />

                                    <h:outputLabel value= "#{bundle.loanDate}" /><h:outputLabel value= ":" />
                                    <h:outputText value="#{paramBean.loan.loanDate}" >
                                        <f:convertDateTime pattern="dd/MM/yyyy" />
                                    </h:outputText>

                                    <h:outputLabel value= "#{bundle.loanNo}" /><h:outputLabel value= ":" />
                                    <h:outputText value="#{paramBean.loan.loanNo}" />

                                    <h:outputLabel value= "#{bundle.loanAmount}" /><h:outputLabel value= ":" />
                                    <h:outputText value="#{paramBean.loan.principalAmount}" >
                                        <f:convertNumber groupingUsed="true"/>
                                    </h:outputText>        

                                    <h:outputLabel style="padding:0 15px 0 0;" value= "#{bundle.interestRate}" /><h:outputLabel value= ":" />
                                    <h:outputLabel value="#{paramBean.loan.interestRate} %" >
                                        <f:convertNumber groupingUsed="true"/>
                                    </h:outputLabel>    

                                    <h:outputLabel value= "#{bundle.interestType}" /><h:outputLabel value= ":" />
                                    <h:outputLabel value="#{constantaBean.getInterestTypeText(paramBean.loan.interestType)}" />

                                    <h:outputLabel value= "#{bundle.disbursementDate}" /><h:outputLabel value= ":" />
                                    <h:outputText value="#{paramBean.loan.disbursementDate}" >
                                        <f:convertDateTime pattern="dd/MM/yyyy" />
                                    </h:outputText>
                                    <h:outputLabel value= "#{bundle.period}" /><h:outputLabel value= " : " />
                                    <h:outputText value="#{paramBean.loan.period}" >
                                        <f:convertNumber groupingUsed="true"/>
                                    </h:outputText>
                                    <h:outputText value="#{paramBean.loan.dueDate}" >
                                        <f:convertDateTime pattern="dd/MM/yyyy" />
                                    </h:outputText>
                                    
                                    <h:outputLabel value= "#{bundle.paypoint}" /><h:outputLabel value= " : " />
                                    <h:panelGrid columns="2" cellpadding="0" cellspacing="0" >
                                        <p:selectOneMenu value="#{paramBean.loan.paypointId}" style="width: 151px;" disabled="true">
                                            <f:selectItems value="#{paramBean.avblPoint}" />
                                        </p:selectOneMenu>
                                    </h:panelGrid>

                                </h:panelGrid>

                                <h:panelGrid columns="0" style="width: 100%;" >
                                    <p:toolbar>
                                        <p:toolbarGroup align="left" >
                                            <h:outputText value="#{bundle.loanfee}" />
                                        </p:toolbarGroup>
                                    </p:toolbar>
                                    
                                    <p:dataTable var="fee" value="#{paramBean.loan.loancosts}" >
                                        <p:column style="width:auto;">
                                            <f:facet name="header">#{bundle.fee}</f:facet>
                                            <h:outputText value="#{paramBean.selectItemValueOf(paramBean.availableFee, fee.feeId)}" />
                                        </p:column>
                                        <p:column style="width: 50px;">
                                            <f:facet name="header">#{bundle.feepc}</f:facet>
                                            <h:outputLabel value="#{fee.feePc}" styleClass="numPos" >
                                                <f:convertNumber groupingUsed="true" />
                                            </h:outputLabel>
                                        </p:column>

                                        <p:column style="width: 80px;">
                                            <f:facet name="header">#{bundle.amount}</f:facet>
                                            <h:outputLabel value="#{fee.feeAmount}" styleClass="numPos" >
                                                <f:convertNumber groupingUsed="true" />
                                            </h:outputLabel>
                                        </p:column>
                                    </p:dataTable>
                                </h:panelGrid>
                                
                                <h:panelGrid columns="0" style="width: 100%;" >
                                    <p:toolbar>
                                        <p:toolbarGroup align="left" >
                                            <h:outputText value="#{bundle.loancoral}" />
                                        </p:toolbarGroup>
                                    </p:toolbar>

                                    <p:dataTable var="coral" value="#{paramBean.loan.loancorals}" rendered="#{paramBean}.loan != null">
                                        <p:column style="width:16px">  
                                            <p:rowToggler />  
                                        </p:column>  
                                        
                                        <p:column headerText="#{bundle.collateral}" style="width:100px">
                                            <h:outputText value="#{paramBean.selectItemValueOf(paramBean.avaibleCoral, coral.collateralId)}" style="width:100px;" />
                                        </p:column>

                                        <p:column headerText="#{bundle.bookValue}" style="width: 15px">
                                            <h:outputText value="#{coral.bookValue}" styleClass="numPos">
                                                <f:convertNumber  />
                                            </h:outputText>
                                        </p:column>

                                        <p:column headerText="#{bundle.documentNo}" style="width: 15px">
                                            <h:outputText value="#{coral.documentNo}" />
                                        </p:column>

                                        <p:column headerText="#{bundle.documentDate}" style="width: 15px">
                                            <h:outputText value="#{coral.documentDate}" >
                                                <f:convertDateTime pattern="dd/MM/yyyy" />
                                            </h:outputText>
                                        </p:column>

                                        <p:rowExpansion>  
                                            <p:dataList value="#{coral.loanCoralAtrribs}" var="atrb" itemType="disc">  
                                                #{atrb.coralAttrib.attributeName} : #{atrb.attributValue}  
                                            </p:dataList> 
                                        </p:rowExpansion> 
                                        
                                    </p:dataTable> 
                                </h:panelGrid>        
                            </p:panel>  

                            <h:panelGrid columns="1" cellpadding="1" rowClasses="panelGridId" border="0" >
                                <p:panel header="#{bundle.cusledgen}" rendered="#{paramBean}.loan != null">
                                    <p:outputPanel autoUpdate="true">
                                    <h:panelGrid columns="3" cellpadding="0" cellspacing="10">

                                        <h:outputLabel value= "#{bundle.globalName}" /><h:outputLabel value= ":" />
                                        <h:outputText style="padding: 0 75px 0 0;"  value="#{paramBean.loan.customer.customerName}" />

                                        <h:outputLabel value= "#{bundle.aliasName}" /><h:outputLabel value= ":" />
                                        <h:outputText rendered="true" value="#{paramBean.loan.customer.aliasName}" />

                                        <h:outputLabel value= "#{bundle.phone}" /><h:outputLabel value= ":" />
                                        <h:outputText value="#{paramBean.loan.customer.phone}"/> 

                                        <h:outputLabel value= "#{bundle.mobilePhone}" /><h:outputLabel value= ":" />
                                        <h:outputText value="#{paramBean.loan.customer.mobilePhone}"/>

                                        <h:outputLabel style="padding: 0 15px 0 0;"  value= "#{bundle.npwp}" /><h:outputLabel value= ":" />
                                        <h:outputText value="#{paramBean.loan.customer.npwp}" />

                                        <h:outputLabel style="padding: 0 15px 0 0;"  value= "#{bundle.addressRes}" /><h:outputLabel value= ":" />
                                        <h:outputText value="#{paramBean.loan.customer.idAddressLine1}" />

                                    </h:panelGrid>
                                    </p:outputPanel>
                                </p:panel>

                                <p:panel header="#{bundle.loanprodLedgend}" rendered="#{paramBean}.loan != null">
                                    <p:outputPanel autoUpdate="true">
                                    <h:panelGrid columns="3" cellpadding="0" cellspacing="10">
                                        <h:outputLabel style="padding: 0 15px 0 0;" value= "#{bundle.gpInslateDays}" /><h:outputLabel value= ":" />
                                       <h:outputText rendered="true" value="#{paramBean.loan.loanprod.gpInslateDays} #{bundle.day}" />

                                        <h:outputLabel value= "#{bundle.penaltyInslateRate}" /><h:outputLabel value= ":" />
                                        <h:outputText rendered="true" value="#{paramBean.loan.loanprod.penaltyInslateRate} %" />

                                        <h:outputLabel value= "#{bundle.interestType}" /><h:outputLabel value= ":" />
                                        <h:outputText rendered="true" value="#{constantaBean.getInterestTypeText(paramBean.loan.loanprod.interestType)}" />

                                        <h:outputLabel value= "#{bundle.closingPenaltyRate}" /><h:outputLabel value= ":" />
                                        <h:outputText rendered="true" value="#{paramBean.loan.loanprod.closingPenaltyRate} %" />

                                    </h:panelGrid>
                                </p:outputPanel>        
                                </p:panel>
                            </h:panelGrid>
                        </h:panelGrid>-->    
            
    </h:body>
</html>